package course.experiment2.num4;

public class People {
    protected String name;//姓名
    protected String sex;//性别
    protected int age;//年龄

    public void eat() {//吃
        System.out.println("我是人，我爱吃饭! ");
    }

    public void speak() {//说话
        System.out.println("我是人， 我爱说话！");
    }

    public People(String name, String sex, int age) {//初始化共有属性，本段代码请自动生成
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
}